package com.example.jdbc0914.dao;

import java.util.List;
import java.util.Map;

/**
 * @author ：lqs
 * @date ：Created in 2023/9/14 15:02
 * @description：
 * @modified By：
 * @version:
 */
public class UserDao extends BaseDao{

    public Map<String,Object> findByUsernameAndPwd(String username, String password){
        String sql="select * from person where username=? and password=?";
        List<Map<String, Object>> list = querySQL(sql, username, password);
        if(list!=null&&list.size()>0){
            return list.get(0);
        }
        return null;
    }
}

